﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/MasterPage.master" AutoEventWireup="true" CodeFile="MenuTypeList.aspx.cs" Inherits="Admin_Menu_MenuTypeList" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
   
     <%-------------------%>
     <div class="header" style="width: 1200px; text-align: left">
            DANH SÁCH LOẠI MENU
            <div class="content-IE">
                 
   
    <asp:GridView ID="grv" runat="server" AutoGenerateColumns="False" Width="100%" AllowPaging="True"
        PageSize="15" CssClas="tablestyle" OnRowDeleting="grv_RowDeleting" 
                    OnPageIndexChanging="grv_PageIndexChanging" CellPadding="4" ForeColor="#333333" 
                    GridLines="None">
        <EditRowStyle BackColor="#2461BF" />
        <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
        <HeaderStyle CssClass="headerstyle" BackColor="#507CD1" Font-Bold="True" 
            ForeColor="White"></HeaderStyle>
        <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
        <RowStyle CssClass="rowstyle" BackColor="#EFF3FB" />
        <AlternatingRowStyle CssClass="altrowstyle" BackColor="White" />
        <Columns>
            <asp:TemplateField HeaderText="Stt" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center">
                <ItemTemplate>
                    <%#Container.DataItemIndex +1 %>
                </ItemTemplate>

<HeaderStyle HorizontalAlign="Center"></HeaderStyle>

                <ItemStyle Width="30px" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Name">
                <ItemTemplate>
                        <%#Eval("Name")%>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="" HeaderStyle-HorizontalAlign="Left" ItemStyle-Width="120px"
                ItemStyle-HorizontalAlign="Left">
                <ItemTemplate>
                    <a href="MenuList.aspx?MenuTypeId=<%#Eval("Id") %>">
                        Danh sách menu</a><br />
                    <a href="MenuAE.aspx?MenuTypeId=<%#Eval("Id") %>">
                        Thêm Menu</a><br />
                    <a href="MenuTypeAE.aspx?MenuTypeId=<%#Eval("Id") %>">
                        <img src='/images/ico-promotions.png' alt='' />
                        Edit</a><br />
                    <asp:LinkButton ID="lnkDelete" runat="server" CommandArgument='<%#Eval("Id") %>'
                        OnClientClick="return confirm('Bạn muốn xóa không?')" CommandName="Delete"><img src='/images/unchecked.gif' alt='' />Delete
                    </asp:LinkButton>
                </ItemTemplate>

<HeaderStyle HorizontalAlign="Left"></HeaderStyle>

                <ItemStyle VerticalAlign="Top" />
            </asp:TemplateField>
        </Columns>
        <PagerSettings PageButtonCount="50" Position="TopAndBottom" />
        <%--<SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
        <SortedAscendingCellStyle BackColor="#F5F7FB" />
        <SortedAscendingHeaderStyle BackColor="#6D95E1" />
        <SortedDescendingCellStyle BackColor="#E9EBEF" />
        <SortedDescendingHeaderStyle BackColor="#4870BE" />--%>
    </asp:GridView>
    <div class="section-header">
        
        <div class="options">
            <a href="MenuTypeAE.aspx">
                <div class="adminButtonBlue" style='float: left; text-align: center;'>
                    <p style='margin: 4px auto'>Thêm</p>
                </div>
            </a>
        </div>
    </div>
            </div>
            <div class="clear">
            </div>
        </div>
    <%------------------%>
</asp:Content>
